package com.dkt.android.mvp.ui.act

import android.os.Bundle
import android.widget.Button
import android.widget.Toast
import com.alibaba.android.arouter.facade.annotation.Route
import com.dkt.android.R
import com.dkt.android.base.BaseActivity
import com.dkt.android.core.RouterHub
import com.dkt.android.utils.Utils

@Route(path = RouterHub.APP_REGISTER_ACTIVITY)
class RegisterActivity : BaseActivity() {

    override fun getLayoutResource(): Int =R.layout.activity_register

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        initView()
    }

    private fun initView(){
        findViewById<Button>(R.id.registerBtn)?.setOnClickListener {
            Toast.makeText(this,"注册成功",Toast.LENGTH_SHORT).show()
            Utils.navigation(this@RegisterActivity, RouterHub.APP_LOGIN_ACTIVITY)
        }
    }

}